﻿package net.wangit.framework.config;

import net.wangit.view.unit.grid.Wheel;

public class DomainSettings {

	private String datasource;
	private String indexUrl;
	private String defaultProxy;
	private String defaultAction;
	private String skin;
	private String framesetTemplate;
	private String pageTemplate;
	private String unitTemplate;
	private String windowTitlePrefix;
	private String windowTitleSuffix;
	private int listSize;
	private int pagesMax;
	private Wheel rowsConfig;
	private boolean markInvalidElements;
	private String markStyle;
	private String dateFormat;
	private String timeFormat;
	private String timestampFormat;

	public DomainSettings() {
		skin = "agile";
		framesetTemplate = "frameset.html";
		pageTemplate = "page.html";
		unitTemplate = "unit.html";
		windowTitlePrefix = "";
		windowTitleSuffix = "";
		listSize = 20;
		pagesMax = 20;
		markInvalidElements = true;
		markStyle = "";
		dateFormat = "YYYY-MM-DD";
		timeFormat = "HH24:MI:SS";
		timestampFormat = "YYYY-MM-DD HH24:MI:SS";
	}

	public String getDateFormat() {
		return dateFormat;
	}

	public void setDateFormat(String dateFormat) {
		this.dateFormat = dateFormat;
	}

	public String getDefaultAction() {
		return defaultAction;
	}

	public void setDefaultAction(String defaultAction) {
		this.defaultAction = defaultAction;
	}

	public String getDefaultProxy() {
		return defaultProxy;
	}

	public void setDefaultProxy(String defaultProxy) {
		this.defaultProxy = defaultProxy;
	}

	public String getWindowTitlePrefix() {
		return windowTitlePrefix;
	}

	public void setWindowTitlePrefix(String windowTitlePrefix) {
		this.windowTitlePrefix = windowTitlePrefix;
	}

	public String getWindowTitleSuffix() {
		return windowTitleSuffix;
	}

	public void setWindowTitleSuffix(String windowTitleSuffix) {
		this.windowTitleSuffix = windowTitleSuffix;
	}

	public int getListSize() {
		return listSize;
	}

	public void setListSize(int listSize) {
		this.listSize = listSize;
	}

	public Wheel getRowsConfig() {
		rowsConfig.reset();
		return rowsConfig;
	}

	public void setRowsConfig(Wheel rowsConfig) {
		this.rowsConfig = rowsConfig;
	}

	public String getSkin() {
		return skin;
	}

	public void setSkin(String skin) {
		this.skin = skin;
	}

	public String getTimeFormat() {
		return timeFormat;
	}

	public void setTimeFormat(String timeFormat) {
		this.timeFormat = timeFormat;
	}

	public String getIndexUrl() {
		return indexUrl;
	}

	public void setIndexUrl(String indexUrl) {
		this.indexUrl = indexUrl;
	}

	public String getTimestampFormat() {
		return timestampFormat;
	}

	public void setTimestampFormat(String timestampFormat) {
		this.timestampFormat = timestampFormat;
	}

	public String getDatasource() {
		return datasource;
	}

	public void setDatasource(String datasource) {
		this.datasource = datasource;
	}

	public boolean isMarkInvalidElements() {
		return markInvalidElements;
	}

	public void setMarkInvalidElements(boolean markInvalidElements) {
		this.markInvalidElements = markInvalidElements;
	}

	public String getMarkStyle() {
		return markStyle;
	}

	public void setMarkStyle(String markStyle) {
		this.markStyle = markStyle;
	}

	public String getFramesetTemplate() {
		return framesetTemplate;
	}

	public void setFramesetTemplate(String framesetTemplate) {
		this.framesetTemplate = framesetTemplate;
	}

	public String getPageTemplate() {
		return pageTemplate;
	}

	public void setPageTemplate(String pageTemplate) {
		this.pageTemplate = pageTemplate;
	}

	public String getUnitTemplate() {
		return unitTemplate;
	}

	public void setUnitTemplate(String unitTemplate) {
		this.unitTemplate = unitTemplate;
	}

	public int getPagesMax() {
		return pagesMax;
	}

	public void setPagesMax(int pagesMax) {
		this.pagesMax = pagesMax;
	}
}
